﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RegisterUserControl.ascx.cs" Inherits="UserControl_DangKy" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style3
    {
        width: 203px;
    }
    .style4
    {
        width: 480px;
    }
</style>

<table class="style1" style="width: 600px">
    <tr align="center">
        <td colspan="3">
            <h1>Đăng ký</h1>
        </td>
    </tr>
    <tr>
        <td style="text-align: right" class="style3">
            Tên đăng nhập:</td>
        <td>
            <asp:TextBox runat="server" ID="txtUsername" Width="200"></asp:TextBox>
        </td>
        <td class="style4">
            <asp:RequiredFieldValidator runat="server" ID="rfvTenDangNhap" ControlToValidate="txtUsername" ErrorMessage="Vui lòng nhập tên đăng nhập" ></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td style="text-align: right" class="style3">
            Mật khẩu:</td>
        <td>
            <asp:TextBox TextMode="Password" ID="txtPassword" runat="server" Width="200"></asp:TextBox>
        </td>
        <td class="style4">
            <asp:RequiredFieldValidator runat="server" ID="rfvPassword" ControlToValidate="txtPassword" ErrorMessage="Vui lòng nhập mật khẩu"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td style="text-align: right" class="style3">
            Nhập lại mật khẩu:</td>
        <td>
            <asp:TextBox TextMode="Password" ID="txtConfirmPassword" runat="server" Width="200"></asp:TextBox>
        </td>
        <td class="style4">
            <asp:RequiredFieldValidator runat="server" ID="rfvConfirmPassowrd" ControlToValidate="txtConfirmPassword" ErrorMessage="Vui lòng xác nhận mật khẩu"></asp:RequiredFieldValidator></br>
            <asp:CompareValidator runat="server" ID="cvPassword" ControlToValidate="txtConfirmPassword" ControlToCompare="txtPassword" ErrorMessage="Xác nhận mật khẩu không đúng"></asp:CompareValidator>
        </td>
    </tr>
    <tr>
        <td style="text-align: right" class="style3">
            Email:</td>
        <td>
            <asp:TextBox ID="txtEmail" runat="server" Width="200"></asp:TextBox>
        </td>
        <td class="style4">
            <asp:RequiredFieldValidator runat="server" ID="rfvEmail" ControlToValidate="txtEmail" ErrorMessage="Vui lòng nhập email"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="style3">
        </td>
        <td colspan="2">
            <asp:Button runat="server" ID="btnRegister" Text="Đăng ký" onclick="btnRegister_Click" />
        </td>
    </tr>
    </table>

